import request from '../../utils/request';

export const ${cfg.entityName}Page = query => {
    return request({
        url: '/${cfg.entityName}/page',
        method: 'get',
        params: query
    });
};

export const ${cfg.entityName}Save = data => {
    return request({
        url: '/${cfg.entityName}/save',
        method: 'post',
        params: data
    });
};

export const ${cfg.entityName}Update = data => {
    return request({
        url: '/${cfg.entityName}/update',
        method: 'put',
        params: data
    });
};

export const ${cfg.entityName}Delete = data => {
    return request({
        url: '/${cfg.entityName}/delete/' + data,
        method: 'delete'
    });
};